@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
/* import font */

* {
  box-sizing: border-box;
  /* padding & border are in width & height */


}

body {
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;

  display: grid;
  position: inherit;
  font-family: 'Montserrat', sans-serif;
  /* it will center allign the items */
  align-items: center;
  align-content: center;
  /* it will also center allign the elements */
  justify-content: center;
  /* it will center allign, otherwise it will be in left side */
  height: 100vh;
  /* what will be the height */
  margin: 0;


}


@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}


.container {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 10px;
  border: 2px solid rgba(177, 177, 177, 0.18);
  border-radius: 40px;
  padding: 100px 20px;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  width: 80vw;
  text-align: center;
  border-color: rgba(176, 176, 176, .5);
  transition: all 0.5s ease-in-out;
}


h3 {
  margin: 250;
  letter-spacing: 10px;
  opacity: 5;

}

.joke {

  font-size: 30px;
  line-height: 40px;
  margin: 50px auto;
  font-weight: normal;
  max-width: 600px;

  -webkit-transition: opacity .5s ease-in-out;
  -moz-transition: opacity .5s ease-in-out;
  -ms-transition: opacity .5s ease-in-out;
  -o-transition: opacity .5s ease-in-out;
  transition: opacity .5s ease-in-out;

  font-size: 30px;
  line-height: 40px;
  margin: 50px auto;
  max-width: 600px;
}

.btn {
  background-color: #9f68e0;
  border: 0;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  padding: 20px 80px;
  margin-top: 50px;
  transition: all 0.2s ease-in-out;
}

.btn:hover {
  background-color: #a3d279;
  font-weight: bold;
  color: black;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1), 0 6px 6px rgba(0, 0, 0, 0, 0.1);
}

.btn:active {
  transform: scale(0.98);
  /* it will shrink while we click the button */
}

.btn:focus {
  outline: 0;
}

/* copy button */
.copy_btn {
  padding: 18px 20px;
  margin-left: 10px;
}
.fade-in-image {
    background: url(joke.png);
    width: 58vh;
    height: 34vh;
    margin: auto;
    background-size: cover;
    position: absolute;
    z-index: 1;
    top: 20%;
    left: 30%;
    right: 30%;
    border-radius: 20px;
    box-shadow: 3px 9px 8px black
}

.toggle {
  width: 4rem;
  height: 4rem;
  background-color: #b9ec91;
  position: absolute;
  top: 2rem;
  right: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: rgba(135, 240, 87, 0.89) 0px 25px 50px -12px;
  cursor: pointer;
}

.toggle i {
  font-size: 2rem;
  color: #111;
}

.toggle i:hover {
  font-size: 2.1rem;
  color: rgb(41, 40, 40);
}

/* Dark mode styling*/
body.dark {
  background-color: #262626;
  color: #ffffff;
}

body.dark .container {
  background-color: rgba(21, 29, 29, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-color: transparent;
}

body.dark .toggle {
  background-color: #323232;
  box-shadow: rgba(33, 34, 33, 0.89) 0px 25px 50px -12px;
}

body.dark .toggle i {
  color: #ffffff;
}

body.dark.toggle i:hover {
  font-size: 2.1rem;
  color: rgb(41, 40, 40);
}

body.dark .btn {
  background-color: #111;
  box-shadow: 0 5px 15px rgba(255, 253, 253, 0.774), 0 6px 6px rgba(0, 0, 0, 0, 0.1);
  color: rgb(255, 255, 255);
}

body.dark .btn:hover {
  background-color: #a3d279;
  color: rgb(0, 0, 0);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1), 0 6px 6px rgba(0, 0, 0, 0, 0.1);
}

body.dark .lds-ring div {
  border-color: #fff transparent transparent transparent;
}


/* Loading Spinner */
.lds-ring {
  visibility: hidden;
  width: 40px;
  height: 40px;
}

.lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 32px;
  height: 32px;
  margin: 4px;
  border: 4px solid #fff;
  border-radius: 50%;
  animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: #262626 transparent transparent transparent;

}

.lds-ring div:nth-child(1) {
  animation-delay: -0.45s;
}

.lds-ring div:nth-child(2) {
  animation-delay: -0.3s;
}

.lds-ring div:nth-child(3) {
  animation-delay: -0.15s;
}

@keyframes lds-ring {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}



@media only screen and (max-width: 600px) {
  .container {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    padding: 15px 15px;
    max-width: 100%;
    display: grid;
    position: absolute;
    align-items: center;

    text-align: center;
    margin: 20px 35px;
  }

  .toggle {
    width: 4rem;
    height: 4rem;
    background-color: #b9ec91;
    position: initial;

    display: grid;
    place-items: center;
    border-radius: 50%;
    box-shadow: rgba(135, 240, 87, 0.89) 0px 25px 50px -12px;
    cursor: pointer;
  }
}

.heading {
  font-weight: bold;
}
